<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>入库车辆信息显示</title>
    <style>
        .a2{
            width: 130px;
        }
        .a1{
            width: 130px;
        }
    </style>
</head>
<body>

<h1 align="center">入库车辆信息</h1>
<table>
    <tr>
        <td class="a2">车牌号</td>
        <td class="a2">入库时间</td>
        <td class="a2">出库时间</td>
        <td class="a2">停放时间/分钟</td>
        <td class="a2">应付金额/元</td>
    </tr>
</table>

<!--用户从数据库中查询出来，从这个list中遍历出来 ： foreach-->
<div th:each="parks:${list}">
    <table>
        <tr>
            <td class="a1" th:text="${parks.car_ID}"></td>
            <td class="a1" th:text="${parks.enter_time}"></td>
            <td class="a1" th:text="${parks.out_time}"></td>
            <td class="a1" th:text="${parks.sum_time}"></td>
            <td class="a1" th:text="${parks.price}"></td>
            <td class="a3">
                <a th:href="@{'/Park/toOuter?'+'id='+${parks.car_ID}}">车辆出库</a>
            </td>
        </tr>
    </table>

</div>
<a th:href="@{/Park/toEnter}">车辆入库登记</a>
<br/>
<a th:href="@{/Park/outSystem}">退出登记系统</a>


</body>
</html>
